package com.baliejun.springsell.dao;


import com.baliejun.springsell.bean.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;


/**
 * @Author: LiejunBa
 * @Description:
 * @Date: 2020/12/2 4:26 下午
 */
public interface OrderMasterDao extends JpaRepository<OrderMaster, String> {

    //查询某个人所有的订单
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);

}
